using System;
using Codeflows.Tracking;

namespace CodeflowsHost.Dashboard.Models
{
	public class CodeflowInstance
	{
		public string FriendlyName { get; set; }
		public string ActionName { get; set; }
		public CodeflowStatus Status { get; set; }
		public DateTime CreatedOnUtc { get; set; }
		public DateTime StartedAtUtc { get; set; }
		public DateTime LockedUntilUtc { get; set; }
		
		public string StatusString
		{
			get { return Status.ToString(); }
		}

		public string CreatedOnUtcDisplay
		{
			get { return CreatedOnUtc.ToString(); }
		}

		public string StartedAtUtcDisplay
		{
			get { return StartedAtUtc.ToString(); }
		}

		public string LockedUntilUtcDisplay
		{
			get { return LockedUntilUtc.ToString(); }
		}
	}
}